package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.BlacklistModel;
import com.xieyingwangluo.yxpart.mapper.BlacklistMapper;
import com.xieyingwangluo.yxpart.service.BlacklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlacklistServiceImpl implements BlacklistService {
    @Autowired
    private BlacklistMapper blacklistMapper;

    @Override
    public int add(BlacklistModel blacklistModel) {
        return blacklistMapper.add(blacklistModel);
    }

    @Override
    public int del(String noid) {
        return blacklistMapper.del(noid);
    }

    @Override
    public int upd(BlacklistModel blacklistModel) {
        return blacklistMapper.upd(blacklistModel);
    }

    @Override
    public BlacklistModel selO(String noid) {
        return blacklistMapper.selO(noid);
    }

    @Override
    public List<BlacklistModel> selA(BlacklistModel blacklistModel) {
        return blacklistMapper.selA(blacklistModel);
    }

    @Override
    public List<BlacklistModel> getByTel(String tel) {
        return blacklistMapper.getByTel(tel);
    }

    @Override
    public BlacklistModel getTel(String tel) {
        return blacklistMapper.getTel(tel);
    }
}
